package com.zz.parkingsystem.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 巡检员反馈表
 * @TableName t_ins_feedback
 */
@Data
public class InsFeedback implements Serializable {
    /**
     * 工单编号
     */
    private Integer ifId;

    /**
     * 泊位id
     */
    private Integer pkId;

    /**
     * 反馈流水号
     */
    private String ifNo;

    /**
     * 反馈内容
     */
    private String ifContent;

    /**
     * 反馈图片
     */
    private String ifImg;

    /**
     * 反馈时间
     */
    private Date ifFeedTime;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InsFeedback other = (InsFeedback) that;
        return (this.getIfId() == null ? other.getIfId() == null : this.getIfId().equals(other.getIfId()))
            && (this.getPkId() == null ? other.getPkId() == null : this.getPkId().equals(other.getPkId()))
            && (this.getIfNo() == null ? other.getIfNo() == null : this.getIfNo().equals(other.getIfNo()))
            && (this.getIfContent() == null ? other.getIfContent() == null : this.getIfContent().equals(other.getIfContent()))
            && (this.getIfImg() == null ? other.getIfImg() == null : this.getIfImg().equals(other.getIfImg()))
            && (this.getIfFeedTime() == null ? other.getIfFeedTime() == null : this.getIfFeedTime().equals(other.getIfFeedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIfId() == null) ? 0 : getIfId().hashCode());
        result = prime * result + ((getPkId() == null) ? 0 : getPkId().hashCode());
        result = prime * result + ((getIfNo() == null) ? 0 : getIfNo().hashCode());
        result = prime * result + ((getIfContent() == null) ? 0 : getIfContent().hashCode());
        result = prime * result + ((getIfImg() == null) ? 0 : getIfImg().hashCode());
        result = prime * result + ((getIfFeedTime() == null) ? 0 : getIfFeedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ifId=").append(ifId);
        sb.append(", pkId=").append(pkId);
        sb.append(", ifNo=").append(ifNo);
        sb.append(", ifContent=").append(ifContent);
        sb.append(", ifImg=").append(ifImg);
        sb.append(", ifFeedTime=").append(ifFeedTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}